package com.pace.ribbon;

import com.pace.ribbon.starter.annotation.EnableUserClient;
import com.pace.ribbon.util.StartCommand;
import com.sl.annotation.EnableHttpClient;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableAsync;

// 该注解表示该类是一个spring boot应用
@EnableAsync(proxyTargetClass = true) //启动异步执行
@EnableUserClient
@EnableHttpClient
@SpringBootApplication
public class App {
    public static void main(String[] args) {
        // 随机端口
//        new StartCommand(args);
        SpringApplication.run(App.class, args);
    }
}
